// cover some element-ui styles

.el-breadcrumb__inner,
.el-breadcrumb__inner a {
  font-weight: 400 !important;
}

.el-upload {
  input[type="file"] {
    display: none !important;
  }
}

.el-upload__input {
  display: none;
}

.cell {
  .el-tag {
    margin-right: 0px;
  }
}

.small-padding {
  .cell {
    padding-left: 5px;
    padding-right: 5px;
  }
}

.fixed-width {
  .el-button--mini {
    padding: 7px 10px;
    min-width: 60px;
  }
}

.status-col {
  .cell {
    padding: 0 10px;
    text-align: center;

    .el-tag {
      margin-right: 0px;
    }
  }
}

// to fixed https://github.com/ElemeFE/element/issues/2461
.el-dialog {
  transform: none;
  left: 0;
  position: relative;
  margin: 0 auto;
}

// refine element ui upload
.upload-container {
  .el-upload {
    width: 100%;

    .el-upload-dragger {
      width: 100%;
      height: 200px;
    }
  }
}

// dropdown
.el-dropdown-menu {
  a {
    display: block
  }
}

// fix date-picker ui bug in filter-item
.el-range-editor.el-input__inner {
  display: inline-flex !important;
}

// to fix el-date-picker css style
.el-range-separator {
  box-sizing: content-box;
}

.el-button--danger:focus,
.el-button--danger {
  color: #fff;
  background-color: #da171f;
  border-color: #da171f;
}
.el-button--danger:hover {
  background: #ff0000;
  border-color: #ff0000;
  color: #fff;
}
.el-button--danger:active {
  background: #a40000;
  border-color: #a40000;
  color: #fff;
  outline: 0;
}
.el-button--danger.is-active {
  background: #a40000;
  border-color: #a40000;
  color: #fff;
}
.el-button--danger.is-disabled,
.el-button--danger.is-disabled:active,
.el-button--danger.is-disabled:focus,
.el-button--danger.is-disabled:hover {
  color: #fff;
  background-color: #d9a287;
  border-color: #d9a287;
}
.el-button--danger.is-plain {
  color: #b3450e;
  background: #f7ece7;
  border-color: #e1b59f;
}
.el-button--danger.is-plain:focus,
.el-button--danger.is-plain:hover {
  background: #b3450e;
  border-color: #b3450e;
  color: #fff;
}
.el-button--danger.is-plain:active {
  background: #a13e0d;
  border-color: #a13e0d;
  color: #fff;
  outline: 0;
}
.el-button--danger.is-plain.is-disabled,
.el-button--danger.is-plain.is-disabled:active,
.el-button--danger.is-plain.is-disabled:focus,
.el-button--danger.is-plain.is-disabled:hover {
  color: #d18f6e;
  background-color: #f7ece7;
  border-color: #f0dacf;
}

.el-table thead {
  color: #1f1f1f;
}

.el-table th {
  background-color: #fafafa;
}

.el-table th > .cell {
  font-weight: bold;
}

.el-table td  .flex > .el-link {
  font-size: 12px;
  font-weight: bold;
}
.el-table--enable-row-hover .el-table__body tr:hover > td,
.el-table__body tr.current-row > td {
  background-color: #a40000;
  color: #fff;
  .el-link.el-link--primary {
    color: #fff;
    &:after {
      border-color: #fff;
    }
  }
  .cell .el-tag {
    background: #a40000;
    color: #fff;
  }
}
.el-table--enable-row-hover .el-table__body tr:hover > td {
  background-color: #9d1f24;
}
.el-table__body tr.current-row > td [class^=el-icon-],
.el-table__body tr.current-row > td [class*=" el-icon-"],
.el-table--enable-row-hover .el-table__body tr:hover > td [class^=el-icon-],
.el-table--enable-row-hover .el-table__body tr:hover > td [class*=" el-icon-"] {
  color: #fff;
}

.el-link.el-link--primary {
  color: #348dcd;
}

.el-link.el-link--primary.is-underline:after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 0;
  bottom: 2px;
  border-bottom: 1px solid #348dcd;
}

.el-link.el-link--primary.is-underline:hover:after {
  bottom: 2px;
}

.el-drawer__wrapper .el-input.is-disabled .el-input__inner,
.el-drawer__wrapper .el-textarea.is-disabled .el-textarea__inner,
.el-details.details .el-input.is-disabled .el-input__inner,
.el-details.details .el-textarea.is-disabled .el-textarea__inner {
  color: #606266;
  cursor: text;
}

.el-details.details .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label:before,
.el-details.details .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label:before {
  display: none;
}

.we-tag.el-tag--dark.el-tag--danger {
  background-color: #a40000;
  border-color: #a40000;
  border-radius: 2px;
}

.el-form--label-left .el-form-item__label {
  position: relative;
}
.el-form--label-left .el-form-item.is-required:not(.is-no-asterisk) > .el-form-item__label:before,
.el-form--label-left .el-form-item.is-required:not(.is-no-asterisk) .el-form-item__label-wrap > .el-form-item__label:before {
  position: absolute;
  left: -10px;
}
.el-pagination {
  text-align: right;
}
.el-table-min30 .el-table__body-wrapper {
  min-height: 30vh;
}
.el-table-min40 .el-table__body-wrapper {
  min-height: 40vh;
}
.el-table-min50 .el-table__body-wrapper {
  min-height: 50vh;
}
.el-table-min60 .el-table__body-wrapper {
  min-height: 60vh;
}
.el-table-min80 .el-table__body-wrapper {
  min-height: 80vh;
}

.el-checkbox__input.is-disabled.is-checked .el-checkbox__inner {
  background-color: #1890ff;
  border-color: #1890ff;
}


.upload-ares .el-button.el-button--primary {
  width: 400px;
  height: 32px;
  background: none;
  border-color: #dcdfe6;
  position: relative;
  font-size: 13px;
  line-height: 12px;
  color: #606266;
  text-align: left;
  vertical-align: top;
}

.upload-ares .el-button.el-button--primary::before {
  position: absolute;
  top: 0;
  right: 40px;
  content: '';
  height: 100%;
  width: 0;
  border-left: solid 1px #dcdfe6;
}
.upload-ares .el-button.el-button--primary::after {
  position: absolute;
  top: 0;
  right: 0;
  content: '…';
  height: 100%;
  width: 40px;
  line-height: 16px;
  font-size: 24px;
  color: #606266;
  text-align: center;
}
